<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车系统</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
    <h1>欢迎来到电子商城</h1>

    <div class="product-list">
        <div class="product-card">

            <h3>智能手机</h3>
            <p>价格: ¥2999</p>
            <form action="add-to-cart" method="post">
                <input type="hidden" name="productId" value="1001">
                <input type="hidden" name="productName" value="智能手机">
                <input type="hidden" name="price" value="2999">
                <button type="submit" class="btn">加入购物车</button>
            </form>
        </div>

        <div class="product-card">

            <h3>笔记本电脑</h3>
            <p>价格: ¥6999</p>
            <form action="add-to-cart" method="post">
                <input type="hidden" name="productId" value="1002">
                <input type="hidden" name="productName" value="笔记本电脑">
                <input type="hidden" name="price" value="6999">
                <button type="submit" class="btn">加入购物车</button>
            </form>
        </div>

        <div class="product-card">

            <h3>无线耳机</h3>
            <p>价格: ¥899</p>
            <form action="add-to-cart" method="post">
                <input type="hidden" name="productId" value="1003">
                <input type="hidden" name="productName" value="无线耳机">
                <input type="hidden" name="price" value="899">
                <button type="submit" class="btn">加入购物车</button>
            </form>
        </div>

        <div class="product-card">

            <h3>智能手表</h3>
            <p>价格: ¥1999</p>
            <form action="add-to-cart" method="post">
                <input type="hidden" name="productId" value="1004">
                <input type="hidden" name="productName" value="智能手表">
                <input type="hidden" name="price" value="1999">
                <button type="submit" class="btn">加入购物车</button>
            </form>
        </div>
    </div>

    <div class="actions">
        <a href="view-cart" class="btn btn-view">查看购物车</a>
    </div>
</div>
</body>
</html>